PREVIEW: For your final project, you will be creating a visual animation of data! Today, we'll learn how to program an example about soccer, and in the next lesson, you will use what you learned to build your own.

  • In this simulation, we generate a random height for the player's kick and see how many times she scores a goal.
  • Click Run to see it in action!
  • When you're ready, click Submit and Next to move on.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)